package com.codepilot.server.mapper;

import com.codepilot.server.model.entity.Record;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface RecordMapper {
    List<Record> getRecordList(Integer userId);
    Record getRecord(Integer userId, Integer problemUid);
    Record getNotDoneRecord(Integer userId, Integer problemUid);
    Integer insertRecord(Integer userId, Integer problemUid);
    Integer updateRecord(Record r);
}
